<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Chatu.ControlLider.Web.Models.Common.NavLink>>" %>
<% if (Request.IsAuthenticated && Page.User.IsInRole(Chatu.ControlLider.Web.Models.Common.AppConstants.ADMINISTRATOR_ROLE)) { %>
    <% string category = (string)ViewData["CurrentCategory"] ?? ""; %>
    <% foreach (var link in Model) { %>
    <a href="<%= Url.Action(link.Action) %>" class="<%= link.Text == category ? "selected" : "" %>"><%= link.Text %></a>
    <% } %>
<% } %>

